function [ arrLineO,arrLineB ] = getLine( vector, Ib , Io)
%GETLINE Summary of this function goes here
%   Detailed explanation goes here
in = 1;
begin = 1;
numLine=0;
arrLineB={};
arrLineO={};
for i=1:length(vector)
    if vector(i)>0 && ~in
        in = 1;
        begin = i;
    end
    if (vector(i)<=0|| i == length(vector)) && in
        in=0;
        high = size(Ib,1);
        subimg = imcrop(Ib, [begin 0 (i-begin) high]);
        subimgI = imcrop(Io, [begin 0 (i-begin) high]);
        w = size(subimg,2);
        if w > 5
            numLine = numLine +1;
            arrLineB{numLine} = subimg';
            arrLineO{numLine} = subimgI';
        end
    end
end

end

